package com.example.library_demo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.library_demo.dto.book.CheckInBookDTO;
import com.example.library_demo.entity.Book;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.library_demo.vo.book.BookInfoVO;
import com.example.library_demo.vo.book.BookVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Eric
 * @since 2024-11-27
 */
public interface IBookService extends IService<Book> {
    IPage<BookVO>pageBookVO(int pageNum,int pageSize);

    IPage<Book>find(String text,int pageNum, int pageSize);

    List<BookInfoVO> findBookByShelfId(long shelfId);

    IPage<BookVO> listStorageBooks(int pageNum, int pageSize);

    Boolean checkIn(CheckInBookDTO dto);

    Boolean checkOut(Long bookId);
}
